package yuxi3;

//构造方法

public class StringBuilderDem01 {
    public static void main(String[] args) {
        //public StringBuilder():创建一空白可变字符串对象，不含任何内容
        StringBuilder sb = new StringBuilder();
        System.out.println("sb:"+sb);
        System.out.println("sb.length:"+sb.length());

        //public StringBuilder(String str)
        StringBuilder sb2 = new StringBuilder("hello");
        System.out.println("sb2:"+sb2);
        System.out.println("sb2.length:"+sb2.length());

    }
}
